package com.mdd.product.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@ApiModel("商品sku创建参数")
public class ProductSkuCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "spuId参数缺失")
    @ApiModelProperty(value = "spu编号")
    private Long spuId;
    @ApiModelProperty(value = "商品价格，单位：元")
    private BigDecimal price;

    @ApiModelProperty(value = "市场价，单位：元")
    private BigDecimal marketPrice;

    @ApiModelProperty(value = "成本价，单位： 元")
    private BigDecimal costPrice;


    @NotNull(message = "picUrl参数缺失")
    @ApiModelProperty(value = "图片地址")
    private String picUrl;

    @ApiModelProperty(value = "库存")
    private Long stock;

    @ApiModelProperty(value = "商品销量")
    private Integer salesCount;

    private String properties;
}
